package org.practice.action;

import org.practice.util.Constant;
import org.practice.util.CookieUtil;

@SuppressWarnings("serial")
public class LogoutAction extends BaseAction{
	
	public String execute()throws Exception {
		getSession().removeAttribute(Constant.SESSION_KEY_USER);
		CookieUtil.deleteCookie(getResponse(), Constant.COOKIE_KEY_USERID);
		getRequest().setAttribute("isLogin",false);
		return SUCCESS;
	}
	
}
